package com.nuanshui.framework.middleware.mq;


public enum MessageType {
	
	FAIL_ORDER("mq.exchange","mq.message.order.fail"),
	SUCCESS_ORDER("mq.exchange","mq.message.order.success"),
	SUCCESS_VIP_ORDER("mq.exchange","mq.message.vip.order.success"),
	CONFIRM_ORDER("mq.exchange","mq.message.order.confirm"),
	FAIL_CROWD_FUNDING("mq.exchange","mq.message.crowdfunding.fail"),
	STATISTICS("mq.exchange","mq.message.statistics"),
	POST_UPDATE_INDEX("mq.exchange","mq.message.post.update.index"),
	AUCTION_FINISH("mq.exchange","mq.message.auction_finish"),
	COMMON_AUCTION_FINISH("mq.exchange","mq.message.common_auction_finish"),
	AUCTION_ORDER_FAIL("mq.exchange","mq.message.auction.order.fail"),
	POS_BILL_FAIL("mq.exchange","mq.message.postbill.fail"),
	POS_BILL_FAIL_DEAD("mq.exchange","mq.message.postbill.fail.dead"),
	VERIFY_USER_ORDER("mq.exchange","mq.message.verify_user_order"),
	VERIFY_USER_ORDER_DEAD("mq.exchange","mq.message.verify_user_order.dead"),
	BALANCE_PAY_SUCCESS("mq.exchange","mq.message.balance.pay.success"),
	BALANCE_PAY_SUCCESS_DEAD("mq.exchange","mq.message.balance.pay.success.dead"),
	BATCH_PAY_FAILD("mq.exchange", "mq.message.batch.pay.faild"),
	BATCH_PAY_FAILD_DEAD("mq.exchange", "mq.message.batch.pay.faild.dead");//分批支付24小时自动取消
	

	private String exchange;//那个渠道
	private String queue;//哪个队列	
	MessageType(String exchange, String queue) {
           this.exchange = exchange;
           this.queue = queue;
	}
	/**
	 * 消息的渠道
	 * @return
	 */
	public String getExchange() {
		return exchange;
	}
	/**
	 * 消息的队列
	 * @return
	 */
	public String getQueue() {
		return queue;
	}
}
